using Face8280WebSocketServer.Model;
using Face8280WebSocketServer.Model.People;

namespace Face8280WebSocketServer.Controllers.DeviceAPI
{
    /// <summary>
    /// 拉取人员导入人脸机后的结果反馈
    /// </summary>
    public class DeviceReadPeopleResultRequest: BaseDeviceRequest
    {

        /// <summary>
        /// 导入成功的数量
        /// </summary>
        public int SuccessNumber { get; set; }

        /// <summary>
        /// 导入失败的数量
        /// </summary>
        public int FailNumber { get; set; }

        /// <summary>
        /// 导入失败原因
        /// </summary>
        public DeviceReadPeopleResultPeopleDetail[] FailEmployeeId { get; set; }
    }

    public class DeviceReadPeopleResultPeopleDetail: PeopleResultDetail
    {
        /// <summary>
        /// 错误代码
        /// </summary>
        public int ErrorCode { get; set; }

        /// <summary>
        /// 重复人员编号
        /// </summary>
        public long RepeatID { get; set; }
    }
}
